#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QComboBox>
#include <QLabel>

class QApplication;

namespace Ui
{
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Widget(QApplication *a, QWidget *parent = 0);
    ~Widget();

private:
    Ui::Widget *ui;

private slots:
    void changeLang(int index);

private:
    void createScreen();
    void changeTr(const QString &langCode);
    void refreshLabel();
    QComboBox *combo;
    QLabel *label;
    QApplication *app;
};

#endif // WIDGET_H
